package sword_to_1;

import java.util.Arrays;

public class LeeCode_53_2 {
    public static void main(String[] args) {

    }
    private static int missingNumber(int[] nums) {
        Arrays.sort(nums);
        for (int i = 0; i < nums.length; i++) {
            if (nums[i] != i){
                return i;
            }
        }
        return nums.length;
    }
}
